<html>
<head>
<style>
.different { color: #0000ff; }
<script>
    if (window.testRunner) {
        testRunner.dumpAsText();
        testRunner.dumpPixels();
    }
</script>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
description('This test checks that the first &lt;script&gt; tag after an unclosed &lt;style&gt; tag is parsed correctly.  Early versions of the patch for <a href="https://bugs.webkit.org/show_bug.cgi?id=6314">Bugzilla Bug 6314</a> did not reset a state variable properly, causing the first &lt;script&gt;&lt;/script&gt; tag in the document to contain everything after the &lt;style&gt; tag. <p class="different">This text should also be blue.</p>');
</script>
</body>
</html>
